package com.kgcx.organization.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import javax.persistence.Transient;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_organization_airport_parking")
@ApiModel(value = "机场泊车位")
public class AirportParking extends AbstractParking {
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true, example = "1号停车位")
    private String name;
    /**
     * 机场id
     */
    @ApiModelProperty(value = "机场id", required = true, example = "1")
    private Long airportId;
    /**
     * 机场名称
     */
    @ApiModelProperty(value = "机场名称", readOnly = true, example = "长沙黄花国际机场")
    @Transient
    private String airportName;
    /**
     * 城市id
     */
    @ApiModelProperty(value = "城市id，行政区域编码", required = true, example = "4301")
    private Long cityId;
    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度", readOnly = true, example = "28.1887000000")
    private String lat;
    /**
     * 经度
     */
    @ApiModelProperty(value = "经度", readOnly = true, example = "113.2262550000")
    private String lng;
    /**
     * 航站楼id
     */
    @ApiModelProperty(value = "航站楼id", required = true, example = "1")
    private Long airportTerminalId;
    /**
     * 航站楼名称
     */
    @ApiModelProperty(value = "航站楼名称", readOnly = true, example = "T1航站楼")
    @Transient
    private String airportTerminalName;

}